package com.smrs.asn.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import com.jof.framework.dao.hibernate.BaseDAOHibernateImpl;
import com.jof.framework.util.Pager;
import com.smrs.asn.dao.AsnSequenceDao;
import com.smrs.asn.model.AsnSequenceModel;
import com.smrs.service.BaseService;

@Component(value="asnSequenceService")
public class AsnSequenceService extends BaseService<AsnSequenceModel,Long>{
	@Autowired
	private AsnSequenceDao asnSequenceDao ;
	


	public Pager<AsnSequenceModel> getByNameLikePager(String name, Pager<AsnSequenceModel> pager){
		return asnSequenceDao.getByNameLikePager(name,pager);
		
	}
	
	public String updateAsnSequenceValue(){
		String seqNo = "";
		seqNo=asnSequenceDao.getAsnSequenceValue();
		return seqNo;
	}
	
	public Long getAsnDetailNextValue(){
		Long seq = 0l;
		
		return seq;
	}
	
	@Override
	public BaseDAOHibernateImpl<AsnSequenceModel, Long> getPerformDao() {		
		return asnSequenceDao;
	}

	
	
}
